import request from '@/utils/request.js'

export const updateArticle = data => request({ method: 'put', url: '/admin/interview/update', data })

export const getArticleDetail = id => request({
  url: '/admin/interview/show',
  params: {
    id
  }
})

export const removeArticle = id => request({
  method: 'DELETE',
  url: '/admin/interview/remove',
  data: {
    id
  }
})

export const createArticle = data => request({
  method: 'POST',
  url: '/admin/interview/create',
  data
})

export const getArticleList = params => request({
  method: 'GET',
  url: '/admin/interview/query',
  params
})
